<?php

namespace app\shop\model\company;

use think\Model;
use app\shop\model\user\User;
/**
 * 应用模型
 */
class TrainLog extends Model
{
    protected $autoWriteTimestamp = true;

    public function trainerUser()
    {
        return $this->belongsTo(User::class, 'trainer', 'user_id')->withDefault();
    }
}
